// 框架内的路由
import users from "./modules/users";
import products from "./modules/product"
import categorys from "./modules/category"
const frameIn = [{
    path: "/",
    redirect: "/admin/welcome"
}, {
    path: "/admin/main",
    component: () => import("../views/Main/main"),
    children: [{
        path: "/admin/main",
        redirect: "/admin/welcome"
    },{
        path: "/admin/welcome",
        component: () => import("../views/Main/welcome")
    }]
}, users, products, categorys
]
// 框架外的路由
const frameOut = [{
    path: "/admin/login",
    component: () => import("../views/Login/login")
}, {
    path: "/admin/register",
    component: () => import("../views/Register/register")
}
]

export default [
    ...frameOut,
    ...frameIn
]